import 'package:flutter/cupertino.dart';
import 'package:flutter_jpf_core/util/colors_util.dart';
import '../custom_text.dart';


// ignore: must_be_immutable
class NoDataView extends StatelessWidget{

  String strMsg;
  int dataType;
  static const int nodata = 1;
  static const int serviceErr = 2;

  NoDataView({this.strMsg = "暂无数据",this.dataType = NoDataView.nodata});

  @override
  Widget build(BuildContext context) {
    return Container(
        alignment: Alignment.center,
        constraints: BoxConstraints(minHeight: 60),
        child: CustomText(this.strMsg,
            alignment: Alignment.center,
            textColor: ColorsUtil.grey_999,
            padding: EdgeInsets.all(20)
        )//Text(strMsg,style: StyleUtil.textStyle.body1TextStyle,),
    );
  }

}